package com.xbongbong.pro.quatation.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 *
 * @author 刘阳
 * @date 2019/8/16 10:05 PM
 * @since v1.0
 * @version v1.0
 */
@Getter
@Setter
@ToString
public class QuotationGetDTO extends BaseDTO {

    private static final long serialVersionUID = -6726881776521662954L;

    /**
     * 数据id
     */
    @NotNull(message = "{dto.msg.quotationGet.dataId.NotNull}")
    private Long dataId;

    /**
     * 分组ID 0为全部
     */
    @NotNull(message = "{dto.msg.quotationGet.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.quotationGet.saasMark.NotNull}")
    @DecimalMin(value = "1", message = "{dto.msg.quotationGet.saasMark.DecimalMin=saasMark的值只能为1，2}")
    @DecimalMax(value = "2", message = "{dto.msg.quotationGet.saasMark.DecimalMax=saasMark的值只能为1，2}")
    private Integer saasMark;

    /**
     * 业务类型
     */
    private Integer businessType;

    /**
     * 菜单id
     */
    private Long menuId;

    /**
     * 表单id
     */
    private Long formId;

    /**
     * 子业务类型
     */
    private Integer subBusinessType;
}
